﻿<Window x:Class="BollardMusic.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Bollard Music Controller" Height="278" Width="525"
        DataContext="{Binding RelativeSource={RelativeSource Self}}" Icon="/BollardMusic;component/Images/bolladmusic.jpg">
    <Grid>
        <ListView Name="bollardListView" ItemsSource="{Binding BollardDataCollection}" Margin="0,0,0,0" Height="130" VerticalAlignment="Top">
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="140" Header="Bollard #" DisplayMemberBinding="{Binding BollardNumber}" />
                    <GridViewColumn Width="140" Header="Sequence File" DisplayMemberBinding="{Binding SequenceFile}" />
                    <GridViewColumn Width="140" Header="Music File" DisplayMemberBinding="{Binding MusicFile}" />
                </GridView>
            </ListView.View>
        </ListView>
        <Button Content="Assign " Height="23" HorizontalAlignment="Left" Margin="13,150,0,0" Name="assignBollardButton" VerticalAlignment="Top" Width="75" Click="assignBollards" />
        <Button Content="Play Bollard" Height="23" HorizontalAlignment="Left" Margin="12,179,0,0" Name="playBollardButton" VerticalAlignment="Top" Width="75" Click="playBollardButton_Click" />
        <CheckBox Content="Play songs randomly every" Height="16" HorizontalAlignment="Left" Margin="191,179,0,0" Name="playSongRandCheckBox" VerticalAlignment="Top" Click="playSongRandCheckBox_Click" />
        <CheckBox Content="Ignore Bollards" Height="16" HorizontalAlignment="Left" Margin="191,157,0,0" Name="ignoreBollardCheckBox" VerticalAlignment="Top"  Click="ignoreBollardCheckBox_Checked"/>
        <Slider Height="23" HorizontalAlignment="Left" Margin="215,201,0,0" Name="timerSlider" VerticalAlignment="Top" Width="184" Minimum="2" Maximum="20" SmallChange="1" LargeChange="5" ValueChanged="timerSlider_ValueChanged" />
        <Label Content="X MINUTES" Height="28" HorizontalAlignment="Left" Margin="346,174,0,0" Name="minutesLabel" VerticalAlignment="Top" />
    </Grid>
</Window>
